/*
    XTU OJ: 1162
    by: fifth_light
*/

#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>

int parity_check(int byte) {
    int result = 0;
    for (int i = 0; i < 8; i++) {
        result ^= byte >> i;
    }
    return result & 1;
}

int main(void) {
    while (1) {
        int byte;
        scanf("%d", &byte);
        if (byte == -1) {
            break;
        }
        puts(parity_check(byte) ? "No" : "Yes");
    }
    return 0;
}
